package com.cn.staticzy.zy.zystatic.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author zhangyi
 * @date 2018/12/16 16:46
 */
@Controller
public class IndexController {

    @GetMapping("/index")
    public String index(Model model){
        model.addAttribute("msg","SuccessFul 成功访问");
        return "index";
    }
}
